<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>湿地生态系统3D互动模型</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div id="container">
        <div id="info-panel" class="hidden">
            <div id="info-content">
                <h2 id="info-title"></h2>
                <p id="info-description"></p>
                <button id="close-info">关闭</button>
            </div>
        </div>
        
        <div id="food-chain-panel" class="hidden">
            <div id="food-chain-content">
                <h3>食物链动态演示</h3>
                <div id="food-chain-animation">
                    <div class="chain-item" id="plant">植物</div>
                    <div class="arrow">→</div>
                    <div class="chain-item" id="shrimp">虾</div>
                    <div class="arrow">→</div>
                    <div class="chain-item" id="fish">鱼</div>
                    <div class="arrow">→</div>
                    <div class="chain-item" id="egret">白鹭</div>
                </div>
                <button id="close-food-chain">关闭演示</button>
            </div>
        </div>
        
        <div id="controls">
            <div id="legend">
                <h3>生态系统组成</h3>
                <ul>
                    <li><span class="color-box producer"></span> 生产者（水草）</li>
                    <li><span class="color-box consumer"></span> 消费者（鱼虾白鹭）</li>
                    <li><span class="color-box decomposer"></span> 分解者（细菌真菌）</li>
                </ul>
            </div>
            <div id="instructions">
                <p>点击场景中的生物体了解详情</p>
            </div>
        </div>
    </div>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r155/three.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/three@0.155.0/examples/js/controls/OrbitControls.js"></script>
    <script src="script.js"></script>
</body>
</html>